# !/bin/bash
###
 # @Descripttion: 切割目录下的文件为fragment或kmers
 # @version: 
 # @Author: Yang jin
 # @Date: 2021-08-24 14:52:41
 # @LastEditors: Yang jin
 # @LastEditTime: 2021-11-16 12:02:04
### 

folder=$1
fix=.500.frag
files=$(ls $folder)
for file in $files
do
  ./fasta2kmers $folder$file $folder$file$fix 0 500
  ./fasta2kmers $folder$file$fix $folder$file$fix.6mer 1 6

done
 